<template>
  <view class="my-search-container">
    <view class="search-box" @click="toClickSearch">
      <text class="placeholder">搜索</text>
    </view>
  </view>
</template>

<script setup>
   const emit = defineEmits(['click'])
   const toClickSearch = () => {
     emit('click')
   }
</script>

<style lang="scss">
.my-search-container {
  height: 80rpx;
  background-color: #67de75;
  padding: 0 30rpx;
  display: flex;
  align-items: center;
  .search-box {
    height: 64rpx;
    width: 100%;
    text-align: center;
    line-height: 64rpx;
    border-radius: 30rpx;
    background-color: #fff;
    .placeholder {
      color: #999;
    }
  }
}
</style>